package com.cloud.controller;

import com.alibaba.fastjson.JSONObject;
import com.cloud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Henry.Song
 * @version 2020/11/23
 * @description
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private UserService userService;

    @GetMapping("getAllRoles")
    public JSONObject getAllRoles() {
        return userService.getAllRoles();
    }
}
